package com.easy.common.util;
//系统常量
public class SYS {
    public static final String AUTHORIATION_HEADER = "Authorization";
    public static final String SK_QUEUE = "SK_QUEUE";
    public static final String SK_DLX_QUEUE = "SK_DLX_Queue";
    public static final String SK_EXCHANGE= "SK_EXCHANGE";
    public static final String SK_ROUTING_KEY = "SK_ROUTING_KEY";
    public static final String SK_DLX_ROUTING_KEY = "SK_DLX_ROUTING_KEY";
    public static final String TOKEN_KEY_ID = "ID";
    public static final String TOKEN_KEY_ROLE = "ROLE";
    public static final String TOKEN_AUTHORIZATION = "authorization";

    //用来实现redis分布式锁的key
    //秒杀商品id 秒杀同步锁的key
    // 12        SK_PRE_LOCK_KEY12
    //789        SK_PRE_LOCK_KEY789   秒杀商品库存
    public static final String SK_PRE_LOCK_KEY="SK_PRE_LOCK_KEY";//秒杀商品库存锁
    public static final String SK_PRE_GOODS_KEY="SK_PRE_GOODS_KEY";//秒杀商品
    public static final String SK_PRE_ACTIVITY_KEY="SK_PRE_ACTIVITY_KEY";//秒杀活动
    public static final String SK_ACTIVITY_START_TIME_KEY="SK_ACTIVITY_START_TIME_KEY";//秒杀活动开始时间
    public static final String SK_ACTIVITY_END_TIME_KEY="SK_ACTIVITY_END_TIME_KEY";//秒杀活动结束时间
    public static final String SK_ACTIVITY_STATUS_HASH_KEY="SK_ACTIVITY_STATUS_HASH_KEY";//秒杀活动状态
    //秒杀活动开始时间3分钟前开始预热
    public static final Long SK_ACTIVITY_START_TIME = 3*60*1000L;

    public static final String SK_RESULT_GOODS_SET_KEY="SK_RESULT_GOODS_SET_KEY";//秒杀结果
    public static final Long SK_LOCK_EXPIRE_TIME = 20L;//锁过期时间

}